﻿<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>
<%@ page import="net.comm.common.ValueMaping" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
	<title>加入社区:i友邻社区</title>
	<link href="${cpath}/css/youlin.css" rel="stylesheet" type="text/css" media="all" />
    <link href="${cpath}/css/register.css" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript" src="<%=path%>/js/imgPreview/CJL.0.1.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/imgPreview/QuickUpload.js"></script>
	<script type="text/javascript" src="<%=path%>/js/imgPreview/ImagePreviewd.js"></script>
    <style>
	.perview {width:600px;background:#fff;font-size:12px; border-collapse:collapse;}
	.perview td, .perview th {padding:5px;border:1px solid #ccc;}
	.perview th {background-color:#f0f0f0; height:20px;}
	.perview a:link, .perview a:visited, .perview a:hover, .perview a:active {color:#00F;}
	.perview table{ width:100%;border-collapse:collapse;}
	</style>

</head>
<body>
 <!--导航面包屑 end -->
	<form action="${cpath}/users.do?action=saveInterest" name="theForm" id="theForm" method="post" enctype="multipart/form-data" >   
    <div class="wrap">
                    <div class="cn_h1">                      
                    </div>
                </div>
                                <div class="con_1">
                    <div class="bg3">
                        <div class="bg31">
                            <div class="tbbg">
                                        <div class="ttb22">
                                           运动：
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='100'/>
                                        </div>
                                        <div class="ttb22">
                                            足球
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='101'/>
                                        </div>
                                        <div class="ttb22">
                                          篮球
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='102'/>
                                        </div>
                                        <div class="ttb22">
                                            高尔夫
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='103'/>
                                        </div>
                                        <div class="ttb22">
                                           网球
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='104'/>
                                        </div>
                                        <div class="ttb22">
                                         羽毛球
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='105'/>
                                        </div>
                                        <div class="ttb22">
                                           健身
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='106'/>
                                        </div>
                                        <div class="ttb22">
                                            户外徒步
                                        </div>                                                       
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='107'/>
                                        </div>
                                        <div class="ttb22">
                                         自行车
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='108'/>
                                        </div>
                                        <div class="ttb22">
                                       功夫
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='109'/>
                                        </div>
                                        <div class="ttb22">
                                           钓鱼
                                        </div>
                                   </div>
                                   <div class="tbbg">
                                        <div class="ttb22">
                                           生活：
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='200'/>
                                        </div>
                                        <div class="ttb22">
                                            亲子
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='201'/>
                                        </div>
                                        <div class="ttb22">
                                       美食
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='202'/>
                                        </div>
                                        <div class="ttb22">
                                            美容
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='203'/>
                                        </div>
                                        <div class="ttb22">
                                           旅游
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='204'/>
                                        </div>
                                        <div class="ttb22">
                                        购物
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='205'/>
                                        </div>
                                        <div class="ttb22">
                                           手工
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='206'/>
                                        </div>
                                        <div class="ttb22">
                                            宠物
                                        </div>                                                       
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='207'/>
                                        </div>
                                        <div class="ttb22">
                                         汽车
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='208'/>
                                        </div>
                                        <div class="ttb22">
                                       养生
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='209'/>
                                        </div>
                                        <div class="ttb22">
                                       股票
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='210'/>
                                        </div>
                                        <div class="ttb22">
                                      教育
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='211'/>
                                        </div>
                                        <div class="ttb22">
                                        网购
                                        </div>
                                        
                                    </div>
                                   <div class="tbbg">
                                        <div class="ttb22">
                                          科技：
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='300'/>
                                        </div>
                                        <div class="ttb22">
                                           数码产品
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='301'/>
                                        </div>
                                        <div class="ttb22">
                                       音响发烧
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='302'/>
                                        </div>
                                        <div class="ttb22">
                                            模型制作
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='303'/>
                                        </div>
                                        <div class="ttb22">
                                          软件分享
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='304'/>
                                        </div>
                                        <div class="ttb22">
                                        游戏分享
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='305'/>
                                        </div>
                                        <div class="ttb22">
                                           科技前沿
                                        </div>                     
                                      </div>   
                                      <div class="tbbg">
                                        <div class="ttb22">
                                          文学：
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='400'/>
                                        </div>
                                        <div class="ttb22">
                                          读书
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='401'/>
                                        </div>
                                        <div class="ttb22">
                                       写作
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='402'/>
                                        </div>
                                        <div class="ttb22">
                                         历史
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='403'/>
                                        </div>
                                        <div class="ttb22">
                                      书法
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='404'/>
                                        </div>
                                        <div class="ttb22">
                                       诗歌
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='405'/>
                                        </div>
                                        <div class="ttb22">
                                     国学
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='406'/>
                                        </div>
                                        <div class="ttb22">
                                       古典
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='407'/>
                                        </div>
                                        <div class="ttb22">
                                       现代
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='408'/>
                                        </div>
                                        <div class="ttb22">
                                          后现代
                                        </div>                     
                                      </div>   
                                      <div class="tbbg">
                                        <div class="ttb22">
                                          艺术：
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='500'/>
                                        </div>
                                        <div class="ttb22">
                                          绘画
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='501'/>
                                        </div>
                                        <div class="ttb22">
                                       音乐
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='502'/>
                                        </div>
                                        <div class="ttb22">
                                         摄影
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='503'/>
                                        </div>
                                        <div class="ttb22">
                                      唱歌
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='504'/>
                                        </div>
                                        <div class="ttb22">
                                      舞蹈
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='505'/>
                                        </div>
                                        <div class="ttb22">
                                     电影
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='506'/>
                                        </div>
                                        <div class="ttb22">
                                      乐器
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='507'/>
                                        </div>
                                        <div class="ttb22">
                                      收藏
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='508'/>
                                        </div>
                                        <div class="ttb22">
                                          欣赏
                                        </div>                     
                                      </div>   
                                      <div class="tbbg">
                                        <div class="ttb22">
                                          品位：
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='600'/>
                                        </div>
                                        <div class="ttb22">
                                          时尚
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='601'/>
                                        </div>
                                        <div class="ttb22">
                                       浪漫
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='602'/>
                                        </div>
                                        <div class="ttb22">
                                         八卦
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='603'/>
                                        </div>
                                        <div class="ttb22">
                                    幽默
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='604'/>
                                        </div>
                                        <div class="ttb22">
                                      严肃
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='605'/>
                                        </div>
                                        <div class="ttb22">
                                     随和
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='606'/>
                                        </div>
                                        <div class="ttb22">
                                    自然
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='607'/>
                                        </div>
                                        <div class="ttb22">
                                      活泼
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='608'/>
                                        </div>
                                        <div class="ttb22">
                                         宅
                                        </div>                     
                                      </div>   
                                      <div class="tbbg">
                                        <div class="ttb22">
                                          时代：
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='700'/>
                                        </div>
                                        <div class="ttb22">
                                          成熟
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='701'/>
                                        </div>
                                        <div class="ttb22">
               60后
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='702'/>
                                        </div>
                                        <div class="ttb22">
               70后
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='703'/>
                                        </div>
                                        <div class="ttb22">
               80后
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='704'/>
                                        </div>
                                        <div class="ttb22">
               90后
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='705'/>
                                        </div>
                                        <div class="ttb22">
                                         调皮
                                        </div>                     
                                      </div>  
                                      <div class="tbbg">
                                        <div class="ttb22">
                                         娱乐：
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='800'/>
                                        </div>
                                        <div class="ttb22">
                                          综艺
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='801'/>
                                        </div>
                                        <div class="ttb22">
                                        大片
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='802'/>
                                        </div>
                                        <div class="ttb22">
                                     选秀
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='803'/>
                                        </div>
                                        <div class="ttb22">
                                     美剧
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='804'/>
                                        </div>
                                        <div class="ttb22">
                                        韩剧
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='805'/>
                                        </div>
                                        <div class="ttb22">
                                   日剧
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='806'/>
                                        </div>
                                        <div class="ttb22">
                                     动漫
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='807'/>
                                        </div>
                                        <div class="ttb22">
                                        视频
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='808'/>
                                        </div>
                                        <div class="ttb22">
                                       搞笑
                                        </div>                     
                                      </div>  
                                      <div class="tbbg">
                                        <div class="ttb22">
                                        特别：
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='900'/>
                                        </div>
                                        <div class="ttb22">
                                     星座
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='901'/>
                                        </div>
                                        <div class="ttb22">
                                        命理
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='902'/>
                                        </div>
                                        <div class="ttb22">
                                    偶像
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='903'/>
                                        </div>
                                        <div class="ttb22">
                                     爱心
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='904'/>
                                        </div>
                                        <div class="ttb22">
                                       公益
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='905'/>
                                        </div>
                                        <div class="ttb22">
                                   品茶
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='906'/>
                                        </div>
                                        <div class="ttb22">
                              品酒
                                        </div>
                                        <div class="ttb21">
                                            <input type="checkbox" name='chkboxinterest' value='907'/>
                                        </div>
                                        <div class="ttb22">
                                    园艺
                                        </div>                     
                                      </div>  
                                <div class="tbbg">
                                <div class="tbbg1">
                                    其他：
                                </div>
                                <div class="gxqm1">
                                    <textarea name="interestSet" class="gxqm2" rows="3" cols="50" ></textarea>
                                </div>
                            </div>                              
                        </div>                       
                
                            <div class="tbbg">
                                <div class="tbbg1">
                                    &nbsp;&nbsp;
                                </div>
                                <div class="tbbgx21">
                                    <div class="tbbg1">
                                    &nbsp;&nbsp;
                           
                            </div>

                            <div class="tp6">
                                <input id="Button2" type="button" onclick="javascript:saveInterest();" value="保  存" />
                            </div>
                        </div>
                        <div class=" cb">
                        </div>
                    </div>
                    <div class=" lh10">
                    </div>
                </div>
            </div>
					<!--隐藏域-->
			<input type="hidden" name='interest'	value=''/>
			<input type="hidden" name='birthdaySet' value='1'/>
			<input type="hidden" name='certSet'		value='4'/>
			<input type="hidden" name='fcNoSet'		value='4'/>
			<input type="hidden" name='certtype'	value='1'/>
			<input type="hidden" name='userID' value=''/>
			<input type="hidden" name='villageID' id="villageID" value=''  />
			<input type="hidden" name='invitorID' value='${invitorID}'/>
     		<INPUT id=max_file_size type=hidden value=2048152 name=MAX_FILE_SIZE>
			<IMG id=oFileChecker style="WIDTH: 0px; HEIGHT: 0px" onload=check_photo_size()>
       </form>
</body>
</html>
<script>

	window.onload = function() {
		<%
		String interestSet = request.getParameter("interestSet");
		String interest = request.getParameter("interest"); 
        if(interest != null && !"".equals(interest)) {
        	interest = interest + ",";
        %>   
        document.getElementsByName("interestSet")[0].value = '<%=interestSet%>';
		var interest = '<%=interest%>';
		//alert(interest);
        var chkboxinterestArr = document.getElementsByName("chkboxinterest");
        for(var i = 0;i<chkboxinterestArr.length;i++) {
				if(interest.indexOf(chkboxinterestArr[i].value + ",") != -1) {
					chkboxinterestArr[i].checked = true;
				}
			
         }   
          
		 <%  
        }
		 %>
	}
	
	function saveInterest()
	{
		//var mapXY = document.getElementById("mapXY");
		//alert("地图坐标=" + mapXY.value);
		//return;
		var obj	= document.getElementById('theForm');
		obj.submit();
	}
	
</script>
